package com.zzzy.doc.common.util;

import com.zzzy.doc.common.enums.DocStatusEnum;
import com.zzzy.doc.dto.DataRegionDto;
import com.zzzy.doc.dto.DataTagDto;

import java.util.ArrayList;
import java.util.List;

public class InitDataPageOfficeUtil {

    private static final List<DataRegionDto> INIT_DATA_REGION_LIST = new ArrayList<>();

    private static final List<DataTagDto> INIT_DATA_TAG_LIST = new ArrayList<>();

    private static final List<DataRegionDto> INIT_RED_SHEET_DATA_REGION_LIST = new ArrayList<>();

    static {
        INIT_DATA_REGION_LIST.add(new DataRegionDto("urgencyDescription", "[紧急程度]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("secretLevel", "[密级]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("subject", "[发文标题]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("docNo", "[发文字号]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("sendUnit", "[发文单位]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("userName", "[拟稿人]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("mainSendUnit", "[主送单位]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("copySendUnit", "[抄送单位]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("docPrecis", "[公文摘要]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("printDate", "[印发日期]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("memo", "[说明]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("printUnit", "[印发机关]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("endDate", "[限办日期]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("printCount", "[打印份数]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("sendUnitAdvice", "[发文单位意见]"));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("auditAdvice", "[审核意见]", DocStatusEnum.AUDIT.getValue()));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("auditUser", "[审核人员]", DocStatusEnum.AUDIT.getValue()));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("auditDate", "[审核日期]", DocStatusEnum.AUDIT.getValue()));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("jointSignAdvice", "[会签意见]", DocStatusEnum.JOINT_SIGN.getValue()));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("jointSignUser", "[会签人员]", DocStatusEnum.JOINT_SIGN.getValue()));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("jointSignDate", "[会签日期]", DocStatusEnum.JOINT_SIGN.getValue()));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("jointSignAddSeal", "会签盖章或签字", DocStatusEnum.JOINT_SIGN.getValue()));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("leaderSignAdvice", "[签发意见]", DocStatusEnum.LEADER_SIGN.getValue()));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("leaderSignUser", "[签发人员]", DocStatusEnum.LEADER_SIGN.getValue()));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("leaderSignDate", "[签发日期]", DocStatusEnum.LEADER_SIGN.getValue()));
        INIT_DATA_REGION_LIST.add(new DataRegionDto("leaderSignAddSeal", "签发盖章或签字", DocStatusEnum.LEADER_SIGN.getValue()));

        INIT_DATA_TAG_LIST.add(new DataTagDto("subject", "[发文标题]"));
        INIT_DATA_TAG_LIST.add(new DataTagDto("docNo", "[发文字号]"));

        INIT_RED_SHEET_DATA_REGION_LIST.add(new DataRegionDto("docNo", "[发文字号]"));
        INIT_RED_SHEET_DATA_REGION_LIST.add(new DataRegionDto("urgencyDescription", "[紧急程度]"));
        INIT_RED_SHEET_DATA_REGION_LIST.add(new DataRegionDto("secretLevel", "[密级]"));
        INIT_RED_SHEET_DATA_REGION_LIST.add(new DataRegionDto("subject", "[发文标题]"));
        INIT_RED_SHEET_DATA_REGION_LIST.add(new DataRegionDto("sendUnit", "[发文单位]"));
        INIT_RED_SHEET_DATA_REGION_LIST.add(new DataRegionDto("mainSendUnit", "[主送单位]"));
        INIT_RED_SHEET_DATA_REGION_LIST.add(new DataRegionDto("copySendUnit", "[抄送单位]"));
        INIT_RED_SHEET_DATA_REGION_LIST.add(new DataRegionDto("printDate", "[印发日期]"));
        INIT_RED_SHEET_DATA_REGION_LIST.add(new DataRegionDto("main", "[正文]"));

    }

    public static List<DataRegionDto> getInitDataRegionList() {
        return INIT_DATA_REGION_LIST;
    }
    public static List<DataRegionDto> getInitRedSheetDataRegionList() {
        return INIT_RED_SHEET_DATA_REGION_LIST;
    }
    public static List<DataTagDto> getInitDataTagList() {
        return INIT_DATA_TAG_LIST;
    }

    public static DataRegionDto getMainDataRegion() {
        return new DataRegionDto("main", "[正文]");
    }
}
